/**
 * @作者 Lucas
 * @创建时间 2020/5/17 19:38
 */
package com.lucas.springboot_restful_api.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Objects;

//@Getter
//@Setter
//public class User extends BaseEntity{
//
//    @TableId
//    private Long id;
//    private String openid;
//    private String nickname;
//    private Integer unifyUid;
//    private String email;
//    private String password;
//    private String mobile;
//    private Object wxProfile;
//}

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class User extends BaseEntity implements Serializable {

    @TableId(value="id",type= IdType.AUTO)
    private Integer id;

    private String openid;

    private String nickname;

    private String unifyUid;

    private String email;

    private String password;

    private String mobile;

    private String wxProfile;

    private static final long serialVersionUID = 1L;
}
